/*
车辆信用分

*/
import httpRequest from '@/utils/httpRequest'
// 获取车辆信用分列表
export function getList (data) {
  return httpRequest({
    url: '/truck/truckCreditScore/list',
    method: 'get',
    params: data
  })
}

// 新增车辆信用分信息或修改车辆信用分信息
export function edit (data) {
  return httpRequest({
    url: '/truck/truckCreditScore/save',
    method: 'post',
    data: data,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}
// 删除车辆信用信息
export function delRegiste (data) {
  return httpRequest({
    url: '/truck/truckCreditScore/delete',
    method: 'post',
    data: data
  })
}
// 获取车辆列表
export function getTruckList (data) {
  return httpRequest({
    url: '/truck/truck/searchlist',
    method: 'get',
    data: data
  })
}
// 修改状态
export function editState (data) {
  return httpRequest({
    url: '/truck/truckCreditScore/updateStatus',
    method: 'post',
    data: data,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}
